package day10;

import java.util.Calendar;
import java.util.Locale;

public class TestPrintf {
	public static void main(String[] args) {
		double d = 2.0 - 1.99;
		System.out.println(d);
		System.out.printf("%10.2f", d);
		System.out.println();
		int i = 20;
		System.out.printf("%x", i);
		System.out.println();
		System.out.printf("%1$d%2$d", 10, 20, 30);
		System.out.println();
		Calendar c = Calendar.getInstance(Locale.FRENCH);
		System.out.printf("%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS", c);
	}
}



